#pragma once
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "GL/glut.h"
#include "IL/il.h"
#include "IL/ilu.h"
#include "IL/ilut.h"
#include "Vector.h"

class Particle
{
public:
	Particle(void);
	Particle(float r, float g, float b, float alpha, float pointSize,Vector position, Vector initialVelocity, Vector acceleration, float lifetime_Seconds, int frameRate);
	~Particle(void);
	void draw();
	void update();
	void setColor(float r, float g, float b, float alpha);
	void setVelocity(Vector *newVelocity);
	void setAcceleration(Vector *newAcceleration);
	float lifetime;
	Vector position;
private:
	 GLfloat r, g, b, alpha;//alpha full intensity = 1
	 GLfloat size;
	 GLfloat alpha_fadeIncr;
	 Vector velocity; 
	 Vector acceleration;
};
